Monday, June 28, 2004

i dont sleep anymore

“If you had an infinite number of monkeys sitting at an infinite number of typewriters for an infinite number of years typing at random then it could be accepted that one would eventually type the entire works of Shakespeare”

So I was thinking about the above hypothetical scenario last night as I was trying to sleep and came up with how it is true. First, let’s imagine that all we are hoping from the monkeys is not the entire collected works of Shakespeare, but simply “Et tu Brute.” The comma has been removed to make this example a bit simpler, but there are 11 characters in that line from Caesar. Let’s assume the typewriters that the monkeys are using have 27 characters; 26 for the alphabet and 1 for the space bar. So the number of possibilities of 11 character phrases, using 27 keys, can be written as 27^11, (or 27 multiplied by itself 11 times). This equates to 1 in 5,559,060,566,555,523 of making the above line from Caesar. As large as this number is, especially for such a small phrase, it is not infinite. Eventually “Et tu Brute” will be written, either on the first try, 27^11th try, or most likely somewhere in between. Not going to try and figure out how long it would take a monkey to get through all 27^11 possibilities, but let’s just say it’s a really long time. Now let us turn “Et tu Brute” into what is being asked of the monkeys; all of Shakespeare. Now the possibilities rise to a number that I can’t even fathom. But again, this number if finite, and the monkeys have a long time to work on it. Finally, given the fact that there are an infinite number of simians working on it, this will greatly reduce the time to create it, and with a truly infinite number, I guess theoretically his works would be created simply in the time it would take to type it all out.

No comments: